package cn.wolfcode.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 此类用来做收费查询
 */
@Getter
@Setter
public class PaymentResult {
    private Long id;

    //用来封装投保人信息
    private LatentClient latentClient;

    //核保单号
    private String number;

    //保费金额
    private Integer price;

    //保险年限
    private Integer limityear;

    //用来封装缴费方式
    private DictionaryDetail dictionaryDetail = new DictionaryDetail();

    //止保时间
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss",timezone ="GTM+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date enddate;

    //起保时间
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss",timezone ="GTM+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date begindate;

    //用来封装保险机构
    private AgencyInfo agencyInfo = new AgencyInfo();

    //用来封装操作人信息
    private Employee employee = new Employee();


}